<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('检测数据列表')"/>
</head>
<body class="gray-bg">
<div class="container-div">
    <div class="row">
        <div class="col-sm-12 search-collapse">
            <form id="formId">
                <div class="select-list">
                    <ul>
                                    <li>
                                        <label>归属路桩：</label>
                                        <input type="text" name="fkId"/>
                                    </li>
                                    <li>
                                        <label>PQI：</label>
                                        <input type="text" name="PQI"/>
                                    </li>
                                    <li class="select-time">
                                        <label>数据日期：</label>
                                        <input type="text" class="time-input" id="startTime" placeholder="开始时间"
                                               name="params[beginDataTime]"/>
                                        <span>-</span>
                                        <input type="text" class="time-input" id="endTime" placeholder="结束时间"
                                               name="params[endDataTime]"/>
                                    </li>
                                    <li>
                                        <label>序列号：</label>
                                        <input type="text" name="serialNumber"/>
                                    </li>
                                    <li>
                                        <label>PCI：</label>
                                        <input type="text" name="PCI"/>
                                    </li>
                                    <li>
                                        <label>RDI：</label>
                                        <input type="text" name="RDI"/>
                                    </li>
                                    <li>
                                        <label>RQI：</label>
                                        <input type="text" name="RQI"/>
                                    </li>
                                    <li>
                                        <label>SRI：</label>
                                        <input type="text" name="SRI"/>
                                    </li>
                                    <li>
                                        <label>PSSI：</label>
                                        <input type="text" name="PSSI"/>
                                    </li>
                                    <li>
                                        <label>国家标准：</label>
                                        <input type="text" name="standard0"/>
                                    </li>
                                    <li>
                                        <label>省级标准：</label>
                                        <input type="text" name="standard1"/>
                                    </li>
                                    <li>
                                        <label>地区标准：</label>
                                        <input type="text" name="standard2"/>
                                    </li>
                                    <li>
                                        <label>系统标准：</label>
                                        <input type="text" name="standard3"/>
                                    </li>
                                    <li>
                                        <label>标准5：</label>
                                        <input type="text" name="standard4"/>
                                    </li>
                                    <li>
                                        <label>标准6：</label>
                                        <input type="text" name="standard5"/>
                                    </li>
                                    <li>
                                        <label>国家标准的类型：</label>
                                        <select name="standard0Type">
                                            <option value="">所有</option>
                                            <option value="-1">代码生成请选择字典属性</option>
                                        </select>
                                    </li>
                                    <li>
                                        <label>省级标准的类型：</label>
                                        <select name="standard1Type">
                                            <option value="">所有</option>
                                            <option value="-1">代码生成请选择字典属性</option>
                                        </select>
                                    </li>
                                    <li>
                                        <label>地区标准的类型：</label>
                                        <select name="standard2Type">
                                            <option value="">所有</option>
                                            <option value="-1">代码生成请选择字典属性</option>
                                        </select>
                                    </li>
                                    <li>
                                        <label>系统标准的类型：</label>
                                        <select name="standard3Type">
                                            <option value="">所有</option>
                                            <option value="-1">代码生成请选择字典属性</option>
                                        </select>
                                    </li>
                                    <li>
                                        <label>标准5的类型：</label>
                                        <select name="standard4Type">
                                            <option value="">所有</option>
                                            <option value="-1">代码生成请选择字典属性</option>
                                        </select>
                                    </li>
                                    <li>
                                        <label>标准6的类型：</label>
                                        <select name="standard5Type">
                                            <option value="">所有</option>
                                            <option value="-1">代码生成请选择字典属性</option>
                                        </select>
                                    </li>
                        <li>
                            <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i
                                    class="fa fa-search"></i>&nbsp;搜索</a>
                            <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i
                                    class="fa fa-refresh"></i>&nbsp;重置</a>
                        </li>
                    </ul>
                </div>
            </form>
        </div>

        <div class="btn-group-sm" id="toolbar" role="group">
            <a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="road:monitoring_data:add">
                <i class="fa fa-plus"></i> 添加
            </a>
            <a class="btn btn-primary single disabled" onclick="$.operate.edit()"
               shiro:hasPermission="road:monitoring_data:edit">
                <i class="fa fa-edit"></i> 修改
            </a>
            <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()"
               shiro:hasPermission="road:monitoring_data:remove">
                <i class="fa fa-remove"></i> 删除
            </a>
            <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="road:monitoring_data:export">
                <i class="fa fa-download"></i> 导出
            </a>
        </div>
        <div class="col-sm-12 select-table table-striped">
            <table id="bootstrap-table"></table>
        </div>
    </div>
</div>
<th:block th:include="include :: footer"/>
<script th:inline="javascript">
    var editFlag = [[${@permission.hasPermi('road:monitoring_data:edit')}]];
    var removeFlag = [[${@permission.hasPermi('road:monitoring_data:remove')}]];
    var prefix = ctx + "road/monitoring_data";

    $(function () {
        var options = {
            url: prefix + "/list",
            createUrl: prefix + "/add",
            updateUrl: prefix + "/edit/{id}",
            removeUrl: prefix + "/remove",
            exportUrl: prefix + "/export",
            modalName: "检测数据",
            columns: [{
                checkbox: true
            },
                        {
                            field: 'id',
                            title: '主键',
                            visible: false
                        },
                        {
                            field: 'fkId',
                            title: '归属路桩'
                        },
                        {
                            field: 'remark',
                            title: '备注'
                        },
                        {
                            field: 'PQI',
                            title: 'PQI'
                        },
                        {
                            field: 'dataTime',
                            title: '数据日期'
                        },
                        {
                            field: 'serialNumber',
                            title: '序列号'
                        },
                        {
                            field: 'PCI',
                            title: 'PCI'
                        },
                        {
                            field: 'RDI',
                            title: 'RDI'
                        },
                        {
                            field: 'RQI',
                            title: 'RQI'
                        },
                        {
                            field: 'SRI',
                            title: 'SRI'
                        },
                        {
                            field: 'PSSI',
                            title: 'PSSI'
                        },
                        {
                            field: 'standard0',
                            title: '国家标准'
                        },
                        {
                            field: 'standard1',
                            title: '省级标准'
                        },
                        {
                            field: 'standard2',
                            title: '地区标准'
                        },
                        {
                            field: 'standard3',
                            title: '系统标准'
                        },
                        {
                            field: 'standard4',
                            title: '标准5'
                        },
                        {
                            field: 'standard5',
                            title: '标准6'
                        },
                        {
                            field: 'standard0Type',
                            title: '国家标准的类型'
                        },
                        {
                            field: 'standard1Type',
                            title: '省级标准的类型'
                        },
                        {
                            field: 'standard2Type',
                            title: '地区标准的类型'
                        },
                        {
                            field: 'standard3Type',
                            title: '系统标准的类型'
                        },
                        {
                            field: 'standard4Type',
                            title: '标准5的类型'
                        },
                        {
                            field: 'standard5Type',
                            title: '标准6的类型'
                        },
                {
                    title: '操作',
                    align: 'center',
                    formatter: function (value, row, index) {
                        var actions = [];
                        actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.id + '\')"><i class="fa fa-edit"></i>编辑</a> ');
                        actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a>');
                        return actions.join('');
                    }
                }]
        };
        $.table.init(options);
    });
</script>
</body>
</html>
